package cn.com.niit.service.impl;

import cn.com.niit.mapper.SessionMapper;
import cn.com.niit.pojo.Session;
import cn.com.niit.service.SessionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SessionServiceImpl implements SessionService {
    @Autowired
    SessionMapper mapper;
    @Override
    public List<Session> queryCount(String name) {
        return mapper.queryCount(name);
    }

    @Override
    public void insert(String name) {
        mapper.insert(name);
    }

    @Override
    public void del(String name) {
        mapper.del(name);
    }

    @Override
    public void delNull( ) {
        mapper.delNull();
    }
}
